package com.oauth.service.generic.dao;

import java.util.List;

import com.oauth.service.generic.beans.OAuthServiceBean;

public interface OAuthDAO {

	/**
	 * @param pServiceBean
	 * @return
	 */
	public OAuthServiceBean persistToken(OAuthServiceBean pServiceBean);

	/**
	 * @param memberId
	 * @param applicationId
	 */
	void deleteToken(Long memberId, Long applicationId);

	/**
	 * @param memberId
	 * @param applicationId
	 * @return
	 */
	OAuthServiceBean getToken(Long memberId, Long applicationId);

	/**
	 * @param memberId
	 * @return
	 */
	public List<OAuthServiceBean> getAllTokens(Long memberId);

}
